package com.gateway.admin.controller;

import com.gateway.common.utils.AjaxResult;
import com.gateway.system.domain.vo.FilterUrlVo;
import com.gateway.system.service.FilterUrlService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author Huangkai
 */
@Slf4j
@RestController
@RequestMapping("/filterUrl")
public class FilterUrlController {

    @Autowired
    FilterUrlService filterUrlService;

    @PostMapping(value = "/selectFilterUrlList")
    public AjaxResult selectFilterUrlList(@RequestBody FilterUrlVo filterUrlVo) {
        return filterUrlService.selectFilterUrlList(filterUrlVo);
    }

    @PostMapping(value = "/insertFilterUrl")
    public AjaxResult insertFilterUrl(@RequestBody FilterUrlVo filterUrlVo) {
        return filterUrlService.insertFilterUrl(filterUrlVo);
    }

    @PostMapping(value = "/updateFilterUrl")
    public AjaxResult updateFilterUrl(@RequestBody FilterUrlVo filterUrlVo) {
        return filterUrlService.updateFilterUrl(filterUrlVo);
    }

    @PostMapping(value = "/deleteFilterUrl")
    public AjaxResult deleteFilterUrl(@RequestBody FilterUrlVo filterUrlVo) {
        return filterUrlService.deleteFilterUrl(filterUrlVo);
    }

}
